package com.jc.common.util;

import org.apache.commons.lang3.StringUtils;

public class ExceptionUtil {
	
	/***
	 * 
	* @Title: subExceptionMessage
	* @Description: 截取部分异常信息
	* @param @param e
	* @param @param start
	* @param @param end
	* @param @return
	* @return String
	* @throws
	 */
	public static String subExceptionMessage(Exception e, int start,int end) {
		
		if(null == e || e.getMessage() == null) {
			return "";
		}
		
		return StringUtils.substring(e.getMessage(), start , end);
		
	}

}
